package com.example.zhihu.pojo;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "user_attention")
public class UserAttention {
    @Id
    private String id;

    /**
     * 用户id
     */
    @Column(name = "user_id")
    private String userId;

    /**
     * 关注的用户
     */
    @Column(name = "attention_userid")
    private String attentionUserid;

    /**
     * 备用状态
     */
    private Integer state;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "modify_time")
    private Date modifyTime;

    /**
     * @return id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取用户id
     *
     * @return user_id - 用户id
     */
    public String getUserId() {
        return userId;
    }

    /**
     * 设置用户id
     *
     * @param userId 用户id
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * 获取关注的用户
     *
     * @return attention_userid - 关注的用户
     */
    public String getAttentionUserid() {
        return attentionUserid;
    }

    /**
     * 设置关注的用户
     *
     * @param attentionUserid 关注的用户
     */
    public void setAttentionUserid(String attentionUserid) {
        this.attentionUserid = attentionUserid;
    }

    /**
     * 获取备用状态
     *
     * @return state - 备用状态
     */
    public Integer getState() {
        return state;
    }

    /**
     * 设置备用状态
     *
     * @param state 备用状态
     */
    public void setState(Integer state) {
        this.state = state;
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * @return modify_time
     */
    public Date getModifyTime() {
        return modifyTime;
    }

    /**
     * @param modifyTime
     */
    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }
}